package com.estronger.shopmanage.ui.order.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * Created by Administrator on 2017-07-28.
 */

public class OrderAttributeBean implements Parcelable {
    private String attId;//属性id或属性code
    private String attName;//属性名称
    private String affiliatedid;//带出的属性id（或者attId对应值的code）
    private String affiliatedName;//带出的属性名称（或者attId对应的值）

    public OrderAttributeBean() {
    }

    protected OrderAttributeBean(Parcel in) {
        attId = in.readString();
        attName = in.readString();
        affiliatedid = in.readString();
        affiliatedName = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(attId);
        dest.writeString(attName);
        dest.writeString(affiliatedid);
        dest.writeString(affiliatedName);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<OrderAttributeBean> CREATOR = new Creator<OrderAttributeBean>() {
        @Override
        public OrderAttributeBean createFromParcel(Parcel in) {
            return new OrderAttributeBean(in);
        }

        @Override
        public OrderAttributeBean[] newArray(int size) {
            return new OrderAttributeBean[size];
        }
    };

    public String getAttId() {
        return attId;
    }

    public void setAttId(String attId) {
        this.attId = attId;
    }

    public String getAttName() {
        return attName;
    }

    public void setAttName(String attName) {
        this.attName = attName;
    }

    public String getAffiliatedid() {
        return affiliatedid;
    }

    public void setAffiliatedid(String affiliatedid) {
        this.affiliatedid = affiliatedid;
    }

    public String getAffiliatedName() {
        return affiliatedName;
    }

    public void setAffiliatedName(String affiliatedName) {
        this.affiliatedName = affiliatedName;
    }
}
